from django.conf.urls.defaults import *
from barrelhouse.core.locations.models import site, datacenter

site_set = { 'queryset': site.objects.all() }
datacenter_set = { 'queryset': datacenter.objects.all() }

urlpatterns = patterns('',
    #(r'^$', 'index'),
    #(r'^datacenters/$', 'django.views.generic.list_detail.object_list' , datacenter_set),
    #(r'^datacenters/(?P<datacenter_id>\d+)/$', 'django.views.generic.list_detail.object_detail', ),
    #(r'^datacenters/(?P<datacenter_id>\d+)/delete/$', 'datacenter_delete'),
    #(r'^datacenters/new/$', 'datacenter_new'),
    (r'^sites/$', 'django.views.generic.list_detail.object_list' , site_set), 
    #(r'^sites/(?P<site_id>\d+)/$', 'django.views.generic.list_detail.object_list', site_set),
    #(r'^sites/(?P<site_id>\d+)/delete$', 'site_delete'),
    #(r'^sites/new/$', 'site_new'),
)
